\hypertarget{classdb_contact}{
\section{db\-Contact \-Class \-Reference}
\label{classdb_contact}\index{db\-Contact@{db\-Contact}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_contact_a2273cfbddc0051696284819bfcfeb317}{get\-All\-Contacts} ()
\item 
\hyperlink{classdb_contact_a95bac470dae6d9bdcfa717c5fc11104e}{get\-Contact\-I\-D} (\$c)
\item 
\hyperlink{classdb_contact_a0926ddf94d472e55e8b11bb48aecaf96}{get\-Organization\-I\-D} (\$c)
\item 
\hyperlink{classdb_contact_a9b36fb56afaff85d63d817e2e4354dff}{get\-Fname} (\$c)
\item 
\hyperlink{classdb_contact_a92c069e6002f92ebfa2c121e984b120b}{get\-Lname} (\$c)
\item 
\hyperlink{classdb_contact_a894d98d3435563e1510534f255faf20a}{get\-Email} (\$c)
\item 
\hyperlink{classdb_contact_ac6710eab95964004b469695081ab069d}{get\-Phone} (\$c)
\item 
\hyperlink{classdb_contact_abde0ab59f3a2e54ff7acc3d342257cdb}{get\-Ext} (\$c)
\item 
\hyperlink{classdb_contact_a1ab13313614b8a37d25b1509c76ecefb}{get\-Fax} (\$c)
\item 
\hyperlink{classdb_contact_a783f80405bcd83a52a7d050aefa54969}{update\-Contact} (\$c)
\item 
\hyperlink{classdb_contact_a32503dde9546c776ebabe3b01731c2dd}{check\-I\-D} (\$c)
\item 
\hyperlink{classdb_contact_a8052600fdae6d5e22990f20f50c917b2}{get\-Contact} (\$contact\-I\-D)
\item 
\hyperlink{classdb_contact_a1dc772ac7653b9139434f430470b6ed4}{delete\-Contact} (\$c)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_contact_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_contact_ad42a54dce36cdfe389c7e19ec529e621}{get\-All\-Name} (\$org\-I\-D)
\item 
static \hyperlink{classdb_contact_a8d439627608a4c5850b54067b92c4021}{add\-Contact} (\$c, \&\$id=null)
\item 
static \hyperlink{classdb_contact_aaaca33ac319178544c7cc9df0d9f1578}{get\-All\-By\-I\-D} (\$id, \&\$output)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_contact}{\-Contact} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-March 4, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Daniel \-Pepin, \-Brice \-Rader and \-Aaron \-Jarzombeck 
\end{DoxyAuthor}


\-Definition at line 18 of file db\-Contact.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_contact_a8d439627608a4c5850b54067b92c4021}{
\index{db\-Contact@{db\-Contact}!add\-Contact@{add\-Contact}}
\index{add\-Contact@{add\-Contact}!dbContact@{db\-Contact}}
\subsubsection[{add\-Contact}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Contact (
\begin{DoxyParamCaption}
\item[{\$}]{c, }
\item[{\&\$}]{id = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_contact_a8d439627608a4c5850b54067b92c4021}
\-Adds a contact to the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \-Class \hyperlink{class_contact}{\-Contact} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if query completes successfully. 
\end{DoxyReturn}


\-Definition at line 314 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a32503dde9546c776ebabe3b01731c2dd}{
\index{db\-Contact@{db\-Contact}!check\-I\-D@{check\-I\-D}}
\index{check\-I\-D@{check\-I\-D}!dbContact@{db\-Contact}}
\subsubsection[{check\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}check\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a32503dde9546c776ebabe3b01731c2dd}
\-Checks to see if the \-I\-D exists. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \-Class \hyperlink{class_contact}{\-Contact} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns 0 if \-I\-D cannot be found, and 1 if \-I\-D is found 
\end{DoxyReturn}


\-Definition at line 343 of file db\-Contact.\-php.

\hypertarget{classdb_contact_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Contact@{db\-Contact}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbContact@{db\-Contact}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_contact_aea6c4d653e217f31256ded5783ed58f4}


\-Definition at line 20 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a1dc772ac7653b9139434f430470b6ed4}{
\index{db\-Contact@{db\-Contact}!delete\-Contact@{delete\-Contact}}
\index{delete\-Contact@{delete\-Contact}!dbContact@{db\-Contact}}
\subsubsection[{delete\-Contact}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Contact (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a1dc772ac7653b9139434f430470b6ed4}
\-Deletes a contact from the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \-Class \hyperlink{class_contact}{\-Contact} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
bool \-Returns \-T\-R\-U\-E if contact can be deleted. 
\end{DoxyReturn}


\-Definition at line 390 of file db\-Contact.\-php.

\hypertarget{classdb_contact_aaaca33ac319178544c7cc9df0d9f1578}{
\index{db\-Contact@{db\-Contact}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbContact@{db\-Contact}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_contact_aaaca33ac319178544c7cc9df0d9f1578}
\-Gets all fields by \-I\-D 
\begin{DoxyParams}[1]{\-Parameters}
get\-All\-By\-I\-D & {\em \$id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
all fields 
\end{DoxyReturn}


\-Definition at line 416 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a2273cfbddc0051696284819bfcfeb317}{
\index{db\-Contact@{db\-Contact}!get\-All\-Contacts@{get\-All\-Contacts}}
\index{get\-All\-Contacts@{get\-All\-Contacts}!dbContact@{db\-Contact}}
\subsubsection[{get\-All\-Contacts}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Contacts (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a2273cfbddc0051696284819bfcfeb317}
\-Gets all the contacts from the database. \begin{DoxyReturn}{\-Returns}
object \-Returns \-My\-S\-Q\-L data object 
\end{DoxyReturn}


\-Definition at line 54 of file db\-Contact.\-php.

\hypertarget{classdb_contact_ad42a54dce36cdfe389c7e19ec529e621}{
\index{db\-Contact@{db\-Contact}!get\-All\-Name@{get\-All\-Name}}
\index{get\-All\-Name@{get\-All\-Name}!dbContact@{db\-Contact}}
\subsubsection[{get\-All\-Name}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{org\-I\-D}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_contact_ad42a54dce36cdfe389c7e19ec529e621}
\-Gets all the contact \-I\-Ds, first names, and last names from the database. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$org\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns \-My\-S\-Q\-L data object 
\end{DoxyReturn}


\-Definition at line 75 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a8052600fdae6d5e22990f20f50c917b2}{
\index{db\-Contact@{db\-Contact}!get\-Contact@{get\-Contact}}
\index{get\-Contact@{get\-Contact}!dbContact@{db\-Contact}}
\subsubsection[{get\-Contact}]{\setlength{\rightskip}{0pt plus 5cm}get\-Contact (
\begin{DoxyParamCaption}
\item[{\$}]{contact\-I\-D}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a8052600fdae6d5e22990f20f50c917b2}
\-Gets all the contact information for a contact with a certain \-I\-D. 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$id} & \-I\-D of contact you want to get. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 if \-I\-D does not exist, or a \hyperlink{class_contact}{\-Contact} object if it does 
\end{DoxyReturn}


\-Definition at line 365 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a95bac470dae6d9bdcfa717c5fc11104e}{
\index{db\-Contact@{db\-Contact}!get\-Contact\-I\-D@{get\-Contact\-I\-D}}
\index{get\-Contact\-I\-D@{get\-Contact\-I\-D}!dbContact@{db\-Contact}}
\subsubsection[{get\-Contact\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Contact\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a95bac470dae6d9bdcfa717c5fc11104e}
\-Gets contact \-I\-D 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns contact \-I\-D 
\end{DoxyReturn}


\-Definition at line 95 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a894d98d3435563e1510534f255faf20a}{
\index{db\-Contact@{db\-Contact}!get\-Email@{get\-Email}}
\index{get\-Email@{get\-Email}!dbContact@{db\-Contact}}
\subsubsection[{get\-Email}]{\setlength{\rightskip}{0pt plus 5cm}get\-Email (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a894d98d3435563e1510534f255faf20a}
\-Gets email of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}


\-Definition at line 173 of file db\-Contact.\-php.

\hypertarget{classdb_contact_abde0ab59f3a2e54ff7acc3d342257cdb}{
\index{db\-Contact@{db\-Contact}!get\-Ext@{get\-Ext}}
\index{get\-Ext@{get\-Ext}!dbContact@{db\-Contact}}
\subsubsection[{get\-Ext}]{\setlength{\rightskip}{0pt plus 5cm}get\-Ext (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_abde0ab59f3a2e54ff7acc3d342257cdb}
\-Gets \-Ext number of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns ext number 
\end{DoxyReturn}


\-Definition at line 215 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a1ab13313614b8a37d25b1509c76ecefb}{
\index{db\-Contact@{db\-Contact}!get\-Fax@{get\-Fax}}
\index{get\-Fax@{get\-Fax}!dbContact@{db\-Contact}}
\subsubsection[{get\-Fax}]{\setlength{\rightskip}{0pt plus 5cm}get\-Fax (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a1ab13313614b8a37d25b1509c76ecefb}
\-Gets fax number of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns fax number 
\end{DoxyReturn}


\-Definition at line 236 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a9b36fb56afaff85d63d817e2e4354dff}{
\index{db\-Contact@{db\-Contact}!get\-Fname@{get\-Fname}}
\index{get\-Fname@{get\-Fname}!dbContact@{db\-Contact}}
\subsubsection[{get\-Fname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Fname (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a9b36fb56afaff85d63d817e2e4354dff}
\-Gets first name of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns first name 
\end{DoxyReturn}


\-Definition at line 132 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a92c069e6002f92ebfa2c121e984b120b}{
\index{db\-Contact@{db\-Contact}!get\-Lname@{get\-Lname}}
\index{get\-Lname@{get\-Lname}!dbContact@{db\-Contact}}
\subsubsection[{get\-Lname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Lname (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a92c069e6002f92ebfa2c121e984b120b}
\-Gets last name of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns last name 
\end{DoxyReturn}


\-Definition at line 153 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a0926ddf94d472e55e8b11bb48aecaf96}{
\index{db\-Contact@{db\-Contact}!get\-Organization\-I\-D@{get\-Organization\-I\-D}}
\index{get\-Organization\-I\-D@{get\-Organization\-I\-D}!dbContact@{db\-Contact}}
\subsubsection[{get\-Organization\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Organization\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a0926ddf94d472e55e8b11bb48aecaf96}
\-Gets organization \-I\-D 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns organization \-I\-D 
\end{DoxyReturn}


\-Definition at line 111 of file db\-Contact.\-php.

\hypertarget{classdb_contact_ac6710eab95964004b469695081ab069d}{
\index{db\-Contact@{db\-Contact}!get\-Phone@{get\-Phone}}
\index{get\-Phone@{get\-Phone}!dbContact@{db\-Contact}}
\subsubsection[{get\-Phone}]{\setlength{\rightskip}{0pt plus 5cm}get\-Phone (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_ac6710eab95964004b469695081ab069d}
\-Gets phone number of contact 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object returns phone number 
\end{DoxyReturn}


\-Definition at line 194 of file db\-Contact.\-php.

\hypertarget{classdb_contact_a783f80405bcd83a52a7d050aefa54969}{
\index{db\-Contact@{db\-Contact}!update\-Contact@{update\-Contact}}
\index{update\-Contact@{update\-Contact}!dbContact@{db\-Contact}}
\subsubsection[{update\-Contact}]{\setlength{\rightskip}{0pt plus 5cm}update\-Contact (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_contact_a783f80405bcd83a52a7d050aefa54969}
\-Updates contact information. 
\begin{DoxyParams}[1]{\-Parameters}
object & {\em \$c} & \-Class \hyperlink{class_contact}{\-Contact} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
int \-Returns \-F\-A\-L\-S\-E if there was an error updating, else returns \-T\-R\-U\-E 
\end{DoxyReturn}


\-Definition at line 258 of file db\-Contact.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_contact_8php}{db\-Contact.\-php}\end{DoxyCompactItemize}
